<template>
    <aside class="admin-sidebar">
      <div class="sidebar-header">
        <h2>管理后台</h2>
      </div>
      <nav>
        <router-link to="/admin/dashboard" class="sidebar-item">
          <i class="fas fa-tachometer-alt"></i>
          <span>控制面板</span>
        </router-link>
        <router-link to="/admin/users" class="sidebar-item">
          <i class="fas fa-users"></i>
          <span>用户管理</span>
        </router-link>
        <router-link to="/admin/articles" class="sidebar-item">
          <i class="fas fa-file-alt"></i>
          <span>文章管理</span>
        </router-link>
        <router-link to="/admin/settings" class="sidebar-item">
          <i class="fas fa-cog"></i>
          <span>系统设置</span>
        </router-link>
      </nav>
    </aside>
  </template>
  
  <style scoped>
  .admin-sidebar {
    width: 220px;
    background: linear-gradient(135deg, #e6f2ff 0%, #cce0ff 100%);
    color: var(--text-color);
    height: 100vh;
    position: sticky;
    top: 0;
    border-right: 1px solid var(--border-color);
  }
  
  .sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .sidebar-header h2 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
  }
  
  .sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    gap: 10px;
  }
  
  .sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--secondary-color);
  }
  
  .sidebar-item.router-link-active {
    background-color: white;
    color: var(--secondary-color);
    font-weight: 500;
    border-left: 3px solid var(--secondary-color);
  }
  
  .sidebar-item i {
    width: 20px;
    text-align: center;
  }
  </style>